#include<iostream>
using namespace std;
int swap(int *x,int *y){
	int j=*x;
	*x=*y;
	*y=j;
}
int main(){
	int x,y;
	cin>>x>>y;
	swap(&x,&y);
	cout<<x<<" "<<y;
} 
